#import "gyViewController.h"
#import "bendimoreViewController.h"
#import "UIView+ViewController.h"
#import "LitterLShowViewController.h"
#import "LitterLLeftViewController.h"
#import "MainTabBarController.h"
#import "UIViewController+MMDrawerController.h"
#import <QuickLook/QuickLook.h>
#import "MenuViewController.h"
#import "LockController.h"
#import "mimaViewController.h"
#import "OALoginViewController.h"
#import "ViewController3.h"
#import "SelectAlert.h"
#import "UIViewExt.h"
#import "Toast+UIView.h"
//#import "AuthHelper.h"
#import "HttpTools.h"
#import "GDataDefines.h"
#import "webViewController.h"
#import "picnewsViewController.h"
#import "shipinnewsViewController.h"
@interface LitterLLeftViewController ()<QLPreviewControllerDataSource,QLPreviewControllerDelegate,UIWebViewDelegate>
{
    NSInteger selectIndex;
        NSArray *titles;

}
//@property (nonatomic, strong) AuthHelper *helper;


@end

@implementation LitterLLeftViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    _web = [[UIWebView alloc]initWithFrame:self.view.frame];
    _web.delegate = self;
//    _web.backgroundColor = [UIColor clearColor];
    _web.hidden = YES;
    [self.view addSubview:_web];


    self.view.backgroundColor = [UIColor whiteColor];
_view0 = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"640x960-背景"]];
_view0.contentMode = UIViewContentModeScaleToFill;
_view0.frame = CGRectMake(0, 0, 250, KScreenHeight);
_view0.userInteractionEnabled=YES;
[self.view addSubview:_view0];
 [self initview];
    self.title = @"个人中心";
  if ([self respondsToSelector:@selector(automaticallyAdjustsScrollViewInsets)]) {
        self.automaticallyAdjustsScrollViewInsets = NO;
}
   
   }
   
- (void)viewWillAppear:(BOOL)animated{
//NSString *vpnIp1 =    @"61.175.232.5";  //vpn设备IP地址

// self.helper = [[AuthHelper alloc] initWithHostAndPort:vpnIp1 port:443 delegate:self];
//        [self.helper setAuthParam:@AUTO_LOGIN_OFF_KEY param:@"true"];
//        [self loaddata];
       [_view3 reloadData];


}
- (void)loaddata{


    [MBProgressHUD showHUDAddedTo:self.view animated:YES];
    NSString * userId = [[NSUserDefaults standardUserDefaults]objectForKey:@"userId"];
    NSArray * array = @[@{@"userId":userId}];
    [HttpTools postWithURL:KExchmain arrays:array method:@"getName" success:^(id JSON) {
    NSLog(@"-------%@",JSON);
            [MBProgressHUD hideAllHUDsForView:self.view animated:YES];

       _name = [NSString stringWithFormat:@"%@",JSON];
//       [self initview];
    } failure:^(NSError *error) {
        [MBProgressHUD hideAllHUDsForView:self.view animated:YES];
        [self initview];
    }];
    



}
#pragma Mark VPNDelegate
//- (void) onCallBack:(const VPN_RESULT_NO)vpnErrno authType:(const int)authType
//{
//NSString *userName1 = @"ccpitzjapp";             //用户名认证的用户名
//NSString *password1 = @"ccpitzjappapp";                //用户名认证的密码
//
//    switch (vpnErrno)
//    {
//        case RESULT_VPN_INIT_FAIL:
//            NSLog(@"Vpn Init failed!");
//            break;
//
//        case RESULT_VPN_AUTH_FAIL:
//            [self.helper clearAuthParam:@SET_RND_CODE_STR];
//            NSLog(@"Vpn auth failed!");
//            break;
//
//        case RESULT_VPN_INIT_SUCCESS:
//            NSLog(@"Vpn init success!");
//            //设置认证参数 用户名和密码以数值map的形式传入
//            [self.helper setAuthParam:@PORPERTY_NamePasswordAuth_NAME param:userName1];
//            [self.helper setAuthParam:@PORPERTY_NamePasswordAuth_PASSWORD param:password1];
//            //开始用户名密码认证
//            [self.helper loginVpn:SSL_AUTH_TYPE_PASSWORD];
//            break;
//        case RESULT_VPN_AUTH_SUCCESS:
//            [self startOtherAuth:authType];
//            break;
//        case RESULT_VPN_AUTH_LOGOUT:
//            NSLog(@"Vpn logout success!");
//            [self out];
//
//
//
//            break;
//        case RESULT_VPN_OTHER:
//            if (VPN_OTHER_RELOGIN_FAIL == (VPN_RESULT_OTHER_NO)authType) {
//                NSLog(@"Vpn relogin failed, maybe network error");
//            }
//            break;
//
//        case RESULT_VPN_NONE:
//            break;
//
//        default:
//            break;
//    }
//}
//
//- (void) startOtherAuth:(const int)authType{
//NSString *userName1 = @"ccpitzjapp";             //用户名认证的用户名
//NSString *password1 = @"ccpitzjappapp";                //用户名认证的密码
//
//NSString *certName1 = @"";     //导入证书名字，如果服务端没有设置证书认证可以不设置
//NSString *certPwd1 =  @"";
//    NSArray *paths = nil;
//    switch (authType)
//    {
//            //            证书认证
//        case SSL_AUTH_TYPE_CERTIFICATE:
//            paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
//                                                        NSUserDomainMask, YES);
//
//            if (nil != paths && [paths count] > 0)
//            {
//                NSString *dirPaths = [paths objectAtIndex:0];
//                NSString *authPaths = [dirPaths stringByAppendingPathComponent:certName1];
//                NSLog(@"PATH = %@",authPaths);
//                //P12证书路径
//                [self.helper setAuthParam:@CERT_P12_FILE_NAME param:authPaths];
//                //证书的密码
//                [self.helper setAuthParam:@CERT_PASSWORD param:certPwd1];
//            }
//            NSLog(@"Start Cert Auth!!!");
//            break;
//
//            /** 用户名密码认证 */
//        case SSL_AUTH_TYPE_PASSWORD:
//            NSLog(@"Start Password Name Auth!!!");
//            [self.helper setAuthParam:@PORPERTY_NamePasswordAuth_NAME param:userName1];
//            [self.helper setAuthParam:@PORPERTY_NamePasswordAuth_PASSWORD param:password1];
//
//            break;
//            /** 无认证 */
//        case SSL_AUTH_TYPE_NONE:
//            NSLog(@"Auth success!!!");
////            [self makeview];
//            return;
//        default:
//            NSLog(@"Other failed!!!");
//            return;
//    }
//    [self.helper loginVpn:authType];
//}
- (void)out
{
 OALoginViewController * loginVC =  [self.storyboard instantiateViewControllerWithIdentifier:@"LoginVC"];
     [[NSUserDefaults standardUserDefaults] setObject:@"N" forKey:@"autoLogin"];
     loginVC.type = @"1";
    self.view.window.rootViewController = loginVC;
}
- (void)initview{

//UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, -21, 250, (KScreenHeight)/2)];
//view.backgroundColor = [UIColor blueColor];
//_image = [[UIImageView alloc]initWithFrame:CGRectMake((250-100)/2, (view.height-100)/2-40, 100, 100)];
//if (  [[[NSUserDefaults standardUserDefaults]objectForKey:@"sex"] isEqualToString:@"N"]
//){
//
//_image.image = [UIImage imageNamed:@"头像-女"];
//
//}else{
//_image.image = [UIImage imageNamed:@"头像-男"];
//}
////image.backgroundColor = [UIColor whiteColor];
//[view addSubview:_image];
//UITapGestureRecognizer*tapGesture = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(Actiondo)];
//
//    [view addGestureRecognizer:tapGesture];
//UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake((250-80)/2,_image.bottom+10, 80, 30)];
////       label.text = [[NSUserDefaults standardUserDefaults] objectForKey:@"userId"];
//
//label.text = @"欢迎您";
//     label.font = [UIFont systemFontOfSize:15];
//label.textAlignment = NSTextAlignmentCenter;
//label.backgroundColor = [UIColor clearColor];
//label.textColor = [UIColor whiteColor];
//[view addSubview:label];
//
//UILabel *label1 = [[UILabel alloc]initWithFrame:CGRectMake((250-80)/2,label.bottom+10, 80, 30)];
//label1.text =_name;
//     label1.font = [UIFont systemFontOfSize:13];
//label1.textAlignment = NSTextAlignmentCenter;
//label1.backgroundColor = [UIColor clearColor];
//label1.textColor = [UIColor whiteColor];
//[view addSubview:label1];
UIImageView *imagetop = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"top"]];
imagetop.contentMode = UIViewContentModeScaleToFill;
imagetop.frame = CGRectMake(30, 50, 200, 50);
//[self.view addSubview:imagetop];

_view3 = [[UITableView alloc]initWithFrame:CGRectMake(5, KScreenHeight/2-120, 250-10, 150) style:UITableViewStylePlain];
_view3.dataSource = self;
 _view3.separatorColor = [UIColor whiteColor];
_view3.backgroundColor = [UIColor clearColor];
_view3.delegate = self;
self.view3.bounces = NO;
//_view3.separatorStyle = NO;
  self.view3.scrollEnabled =NO;


//[_view0 addSubview:view];
[_view0 addSubview:_view3];
}
 
  
// 选择男女图片
- (void)Actiondo{
    titles = @[@"设置性别为男",@"设置性别为女"];
[SelectAlert showWithTitle:@"设置性别" titles:titles selectIndex:^(NSInteger selectIndex) {
    } selectValue:^(NSString *selectValue) {
    NSLog(@"%@",selectValue);
if ([selectValue isEqualToString:@"设置性别为男"]) {
[[NSUserDefaults standardUserDefaults] setObject:@"Y" forKey:@"sex"];
[self viewWillAppear:YES];

}else{
//
[[NSUserDefaults standardUserDefaults] setObject:@"N" forKey:@"sex"];
[self viewWillAppear:YES];

}


} showCloseButton:YES];
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return  3;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return 50;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{

//if (indexPath.row ==0) {
//
//     UITableViewCell* cell = [[UITableViewCell alloc]init];
//       cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; //显示最右边的箭头
//
//     cell.backgroundColor = [UIColor clearColor];
//      UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(10,10,cell. contentView.height-20, cell. contentView.height-20)];
//    image.image = [UIImage imageNamed:@"关于我们"];
//[cell.contentView addSubview:image];
//
//      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(image.right +10, 0, 100, cell.contentView.height)];
//      cell.selectionStyle = UITableViewCellSelectionStyleNone;
//    label.text = @"关于我们";
//    label.textColor = [UIColor whiteColor];
//     label.font = [UIFont systemFontOfSize:16];
//    [cell.contentView addSubview:label];
//     NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
//    NSString *appVersion = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
//  UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, 250  -150-image.width, label.height)];
//    label2.text = appVersion;
//      label2.textAlignment = NSTextAlignmentRight;
//label2.textColor = [UIColor whiteColor];
//     label2.font = [UIFont systemFontOfSize:16];
////    [cell.contentView addSubview:label2];
//    return cell;
//
//}
if (indexPath.row ==0){
    
     UITableViewCell* cell = [[UITableViewCell alloc]init];
          cell.backgroundColor = [UIColor clearColor];

       UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(10,10,cell. contentView.height-20, cell. contentView.height-20)];
  cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; //显示最右边的箭头  
    image.image = [UIImage imageNamed:@"图片"];

//    image.image = [UIImage imageNamed:@"设置"];
[cell.contentView addSubview:image];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(image.right +10, 0, 100, cell.contentView.height)];
    label.text = @"图片新闻";
        label.textColor = [UIColor whiteColor];

     label.font = [UIFont systemFontOfSize:16];
    [cell.contentView addSubview:label];
  UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, 250  -130-image.width, label.height)];
//    label2.text = [NSString stringWithFormat:@"%@",_dic[@"OFFICE"]];
      label2.textAlignment = NSTextAlignmentRight;
label2.textColor = [UIColor whiteColor];

     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;

}if (indexPath.row ==1){
 UITableViewCell* cell = [[UITableViewCell alloc]init];
           cell.backgroundColor = [UIColor clearColor];

  UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(10,10,cell. contentView.height-20, cell. contentView.height-20)];
//    image.image = [UIImage imageNamed:@"用户指南"];
    image.image = [UIImage imageNamed:@"视频"];

[cell.contentView addSubview:image];
            cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; //显示最右边的箭头  

     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(image.right +10, 0, 100, cell.contentView.height)];
    label.text = @"视频新闻";
    label.textColor = [UIColor whiteColor];

     label.font = [UIFont systemFontOfSize:16];
    [cell.contentView addSubview:label];

    return cell;


}
if (indexPath.row ==2){
 UITableViewCell* cell = [[UITableViewCell alloc]init];
           cell.backgroundColor = [UIColor clearColor];

  UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(10,10,cell. contentView.height-20, cell. contentView.height-20)];
//    image.image = [UIImage imageNamed:@"用户指南"];
    image.image = [UIImage imageNamed:@"关于我们"];

[cell.contentView addSubview:image];
            cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; //显示最右边的箭头

     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(image.right +10, 0, 100, cell.contentView.height)];
    label.text = @"下载中心";
    label.textColor = [UIColor whiteColor];

     label.font = [UIFont systemFontOfSize:16];
    [cell.contentView addSubview:label];

    return cell;


}
//if (indexPath.row ==3){
// UITableViewCell* cell = [[UITableViewCell alloc]init];
//  UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(10,10,cell. contentView.height-20, cell. contentView.height-20)];
//    image.image = [UIImage imageNamed:@"归属公司"];
//[cell.contentView addSubview:image];
//            cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; //显示最右边的箭头  
//
//     cell.selectionStyle = UITableViewCellSelectionStyleNone;
//      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(image.right +10, 0, 100, cell.contentView.height)];
//    label.text = @"修改手机号码";
//     label.font = [UIFont systemFontOfSize:14];
//    [cell.contentView addSubview:label];
//
//    return cell;
//
//
//}
//if (indexPath.row ==3){
// UITableViewCell* cell = [[UITableViewCell alloc]init];
//  UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(10,10,cell. contentView.height-20, cell. contentView.height-20)];
//    image.image = [UIImage imageNamed:@"手势密码"];
//[cell.contentView addSubview:image];
//            cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; //显示最右边的箭头  
//
//     cell.selectionStyle = UITableViewCellSelectionStyleNone;
//      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(image.right +10, 0, 100, cell.contentView.height)];
//    label.text = @"手势设置";
//     label.font = [UIFont systemFontOfSize:14];
//    [cell.contentView addSubview:label];
//
//    return cell;
//
//
//}else{
// UITableViewCell* cell = [[UITableViewCell alloc]init];
//  UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(10,10,cell. contentView.height-20, cell. contentView.height-20)];
//    image.image = [UIImage imageNamed:@"归属公司"];
//[cell.contentView addSubview:image];
////            cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; //显示最右边的箭头  
//
//     cell.selectionStyle = UITableViewCellSelectionStyleNone;
//      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(image.right +10, 0, 100, cell.contentView.height)];
//    label.text = @"退出";
//     label.font = [UIFont systemFontOfSize:14];
//    [cell.contentView addSubview:label];
//
//    return cell;
//
//
//}

else{

return nil;
}

}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
NSLog(@"0000");
if (indexPath.row ==1) {
    shipinnewsViewController *vc = [[shipinnewsViewController alloc]init];
      MainTabBarController* nav = (MainTabBarController*)self.mm_drawerController.centerViewController;

    NSArray *arr = nav.viewControllers;
    vc.hidesBottomBarWhenPushed = YES;
    [arr[0] pushViewController:vc animated:NO];

    //当我们push成功之后，关闭我们的抽屉

    [self.mm_drawerController closeDrawerAnimated:YES completion:^(BOOL finished) {
        //设置打开抽屉模式为MMOpenDrawerGestureModeNone，也就是没有任何效果。
        [self.mm_drawerController setOpenDrawerGestureModeMask:MMOpenDrawerGestureModeAll];
    }];

    
    
}
if (indexPath.row ==2) {
    bendimoreViewController *vc = [[bendimoreViewController alloc]init];
      MainTabBarController* nav = (MainTabBarController*)self.mm_drawerController.centerViewController;

    NSArray *arr = nav.viewControllers;
    vc.hidesBottomBarWhenPushed = YES;
    vc.id = @"25";
    vc.titlename = @"下载中心";
    [arr[0] pushViewController:vc animated:NO];

    //当我们push成功之后，关闭我们的抽屉

    [self.mm_drawerController closeDrawerAnimated:YES completion:^(BOOL finished) {
        //设置打开抽屉模式为MMOpenDrawerGestureModeNone，也就是没有任何效果。
        [self.mm_drawerController setOpenDrawerGestureModeMask:MMOpenDrawerGestureModeAll];
    }];

    
    
}

//if (indexPath.row ==0) {
//    gyViewController *vc = [[gyViewController alloc]init];
//      MainTabBarController* nav = (MainTabBarController*)self.mm_drawerController.centerViewController;
//
//    NSArray *arr = nav.viewControllers;
//    [arr[0] pushViewController:vc animated:NO];
//
//    //当我们push成功之后，关闭我们的抽屉
//
//    [self.mm_drawerController closeDrawerAnimated:YES completion:^(BOOL finished) {
//        //设置打开抽屉模式为MMOpenDrawerGestureModeNone，也就是没有任何效果。
//        [self.mm_drawerController setOpenDrawerGestureModeMask:MMOpenDrawerGestureModeAll];
//    }];
//
//
//
//}


if (indexPath.row ==0) {
    picnewsViewController *vc = [[picnewsViewController alloc]init];
      MainTabBarController* nav = (MainTabBarController*)self.mm_drawerController.centerViewController;

    NSArray *arr = nav.viewControllers;
    vc.hidesBottomBarWhenPushed = YES;
    [arr[0] pushViewController:vc animated:NO];

    //当我们push成功之后，关闭我们的抽屉

    [self.mm_drawerController closeDrawerAnimated:YES completion:^(BOOL finished) {
        //设置打开抽屉模式为MMOpenDrawerGestureModeNone，也就是没有任何效果。
        [self.mm_drawerController setOpenDrawerGestureModeMask:MMOpenDrawerGestureModeAll];
    }];

    
    
}

}
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{

if (buttonIndex == 1){

//     [_helper logoutVpn];

            [self out];


   

}
}



-(void)openFileURL:(NSString*)url{
    NSString * stringurl = [url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    self.attacmentURL =  [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingPathComponent:[url lastPathComponent]]; //附件路径
 
    if ([self isExtistFilePathWithFileName:[[NSURL URLWithString:stringurl] lastPathComponent]]) { //已经存在附件
        QLPreviewController *previewoCntroller = [[QLPreviewController alloc] init] ;
        previewoCntroller.delegate=self;
        previewoCntroller.dataSource=self;
        previewoCntroller.navigationItem.rightBarButtonItem=nil;
        [self.navigationController pushViewController: previewoCntroller animated:YES];
        
    }else{
        MBProgressHUD * hud  =  [MBProgressHUD showHUDAddedTo:self.view animated:YES];
        hud.labelText = @"下载中...";
        NSURLRequest * request = [NSURLRequest requestWithURL:[NSURL URLWithString:stringurl]];
        [self.web loadRequest:request];
    }
    
}

#pragma mark PreviewDataSource
//第一个方法是设定一组文档浏览的个数，会影响到在文档预览中的上/下一页。
-(NSInteger)numberOfPreviewItemsInPreviewController:(QLPreviewController *)controller {
    return 1;
}
//第二个方法是指定文档预览的文件路径
-(id<QLPreviewItem>)previewController:(QLPreviewController *)controller previewItemAtIndex:(NSInteger)index {
    
    return [NSURL fileURLWithPath:self.attacmentURL];
}

-(BOOL)isExtistFilePathWithFileName:(NSString*)fileName{
    NSString * file = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
    NSString * filePath = [file stringByAppendingPathComponent:fileName];
    NSFileManager * fileManager = [NSFileManager defaultManager];
    if ([fileManager fileExistsAtPath:filePath] && fileName.length != 0) {
        return YES;
    }else{
        return NO;
    }
    
}

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType{
    NSURL * requestedURL = [request URL];
    NSData * fileData = [[NSData alloc] initWithContentsOfURL:requestedURL];
    NSString * filePath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
     [fileData writeToFile:[filePath stringByAppendingPathComponent:[requestedURL lastPathComponent]] atomically:YES];
      return YES;
}
- (void)webViewDidStartLoad:(UIWebView *)webView{
    
    
}
- (void)webViewDidFinishLoad:(UIWebView *)webView{
    [MBProgressHUD hideAllHUDsForView:self.view animated:YES];
    QLPreviewController *previewoCntroller = [[QLPreviewController alloc] init] ;
    previewoCntroller.delegate=self;
    previewoCntroller.dataSource=self;
    [self.navigationController pushViewController: previewoCntroller animated:YES];
}
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error{
    
    [MBProgressHUD hideAllHUDsForView:self.view animated:YES];
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
